package com.framework.admin.mapper;

import com.framework.admin.model.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

@Mapper
public interface RoleMapper {
    Page<SysRole> findRoles(@Param("role") SysRole role, PageRequest pageable);

    List<SysRole> findList(@Param("role") SysRole role);

}
